<?php
class Commentmanager_Data_Getcurrentcomment implements Commentmanager_Data_Mainable{
    
    private $core_controller_selectdata;
    
    public function __construct() {
        $this->core_controller_selectdata = new Core_Controller_Selectdata;
    }
    
    public function main(array $variables = null){
        $variables['query'] = "SELECT id, username, comment_text, status_name, creation_date FROM page_comments WHERE id='".$variables['get']['name']."'";
        return $this->core_controller_selectdata->main($variables);
    }
}
